﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入你要计算的第一个数字");
            double num1 = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数字");
            double num2 = double.Parse(Console.ReadLine());

            Console.WriteLine("请选择计算方法：1.加,2.减,3.除,4.乘。");
            double choose = double.Parse(Console.ReadLine());

            Calculation calculation = new Calculation(num1, num2);

            switch (choose)
            {
                case 1:
                    calculation.Addition();
                    break;
                case 2:
                    calculation.Subtraction();
                    break;
                case 3:
                    calculation.Division();
                    break;
                case 4:
                    calculation.Multiplication();
                    break;
                default:
                    Console.WriteLine("你的选择的错误的，系统已失效，请重新启动");
                    break;
            }
        }
    }
}
